﻿using System;
using System.Collections.Generic;
using System.Text;
using BarCode.Bean;
using System.IO;

namespace BarCode.Common
{
    public class GlobalVal
    {
        /// <summary>
        /// 
        /// </summary>
        public static string Configs_MDB_File = "";

        /// <summary>
        ///  IP地址配置信息
        /// </summary>
        public static IpAddressBean ipAddressInfo;

        /// <summary>
        /// MySql数据库访问信息
        /// </summary>
        public static MySqlAccessInfo serverMysqlInfo;

        /// <summary>
        /// 本地MySql数据库访问信息
        /// </summary>
        public static MySqlAccessInfo JXJKMySQLInfo;

        /// <summary>
        /// 生产线编号
        /// </summary>
        public static string Line_No = "";

        /// <summary>
        /// 数据库服务器系统时间差（单位：小时）
        /// </summary>
        public static int Diff_Hour = 0;

        /// <summary>
        /// 工作开始时间
        /// </summary>
        public static string WORK_START_TIME = "";

        /// <summary>
        /// 偏移量
        /// </summary>
        public static OffSetInfo offSetInfo;

        /// <summary>
        /// 主程序中进行数据上传Flag
        /// </summary>
        public static bool bolUploadSubMain;

        /// <summary>
        /// 网络连接标记
        /// </summary>
        public static bool bolNetConnect;

        /// <summary>
        /// 条码是否重复
        /// </summary>
        public static bool bolRepeats;

        /// <summary>
        /// 当前用户
        /// </summary>
        public static UserBean CurrentUser;

        /// <summary>
        /// 批号
        /// </summary>
        public static string BoxId;

        /// <summary>
        /// 备份文件夹路径
        /// </summary>
        public static string BK_PATH = AppDomain.CurrentDomain.BaseDirectory + "DataBF" + Path.DirectorySeparatorChar;

        public static string jkErrCode;
        public static string jxErrCode;
        public static int jxjkCountI_OK = 0;
        public static int jkCountI_OK = 0;


        /// <summary>
        /// 程序启动时是否从服务器加载数据标志
        /// </summary>
        public static string LoadUsers = "1";               // 用户数据
        public static string LoadLicence = "0";             // 车辆牌照信息
        public static string LoadMnoprnPre = "0";           // 待水密封箱信息
        public static string LoadZjmfPre = "0";             // 待终检密封箱信息
        public static string LoadCustomer = "0";            // 客户信息

    }
}
